package com.microservice.salmon.db.mapper;

import com.microservice.salmon.db.entities.OrderGoods;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OrderGoodsMapper extends Mapper<OrderGoods> {

    void batchInsert(@Param("orderGoodsList") List<OrderGoods> orderGoodsList);

    List<OrderGoods> getByOrderNoUserId(@Param("orderNo")Long orderNo, @Param("userId")Integer userId);

    List<OrderGoods> getByOrderNo(@Param("orderNo")Long orderNo);
}